package cn.tedu.csmall.passport.ex;

import cn.tedu.csmall.passport.web.ServiceCode;

/**
 * ClassName: ServiceException
 * Package: cn.tedu.csmall.passport.ex
 * Description 业务异常类
 *
 * @version 0.0.1
 * @Author: 大傻
 * @Create:2022/12/8
 */
public class ServiceException extends RuntimeException {
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode,String message){
        super(message);
        this.serviceCode=serviceCode;

    }
    public ServiceCode getServiceCode(){
        return serviceCode;
    }

}
